#ifndef UTILS_H
#define UTILS_H

#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <iostream>
#include <stdlib.h>
#include <cstring>
#include <cstdio>
#include <vector>
#include <memory>
#include <string>
#include <pwd.h>

using namespace std;

string getHomeDir();
string getTerminal();
string getConfigDirPath();
void addItemToHistory(string name, string exec);
void makeConfigDir();
bool isStringHasSpace(string &str);
bool stringToBool(string &oper);
void splitCommand(string &command, vector<string> &out);
void split(string &str, char delim, vector<string> &out);
pid_t CreateProcess(const char* command, const char* parametersIn);
void launchApp(string &cmd);

#endif // UTILS_H
